<template>
  <div class="person">
    <h2>一辆{{ car.brand }}车，价格是{{ car.price }}万</h2>
    <button @click="changeName">修改车价格</button>
  </div>
</template>
  <script setup lang='ts'>
import { ref, reactive } from "vue";
const car = reactive({
  brand: "奔驰",
  price: 20
});
const changeName = () => {
  car.price += 10;
};
</script>
  <style scoped>
.person {
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;
}
</style>